package flex.cc.store.dto.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import flex.cc.common.vo.CommonEntity;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.Column;
import java.util.Date;

/**
 * @author wkangle
 * @className BookingInfoEntity
 * @description 预约信息实体
 * @time 2021-12-15 15:01:13
 */
@Data
@TableName("t_store_booking_info")
public class BookingInfoEntity extends CommonEntity {
   
	private static final long serialVersionUID = 1L;

	/**
     * 卡券id
     */
    private Long couponId;

    /**
     * 绑定车牌号
     */
    private String carNo;

    /**
     * 服务类型id
     */
    private String activityId;

    /**
     * 门店id
     */
    private Long storeInfoId;

    /**
     * 预约状态：0-预约失败，1-预约成功
     */
    private String status;

    /**
     * 预约到店时间
     */
    @Column(name = "arrival_time")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date arrivalTime;
    
    /**
     * 归属服务包编码
     */
    private String packageCode;

}
